#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QPainter>
#include <QTimer>
#include <QPixmap>
#include "LedView.h"
#include <QtGui>
#include "ScreenView.h"

MainWindow::MainWindow(QWidget *parent) :
	QMainWindow(parent),
	ui(new Ui::MainWindow)
{
	ui->setupUi(this);

	connect(ui->modeSelector, SIGNAL(viewChanged(int)), SLOT(onViewChanged(int)));

	//QTabBar* tabBar=qFindChild<QTabBar*>(ui->tabWidget);
	QTabBar* tabBar = ui->tabWidget->tabBar();
	tabBar->hide();
}

MainWindow::~MainWindow()
{
	delete ui;
}

void MainWindow::onViewChanged(int view)
{
	ui->tabWidget->setCurrentIndex(view);
}

